package com.dao.purchase; 

import com.model.purchase.PurchaseSixCostsOrdersLinesModel;
import java.sql.SQLException;
import java.util.List; 
import java.util.Map; 
import org.apache.ibatis.annotations.Param; 

public interface PurchaseSixCostsOrdersLinesDao  {

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int insert(PurchaseSixCostsOrdersLinesModel sixCostsOrdersLinesModel);

	
	int deleteByLineId(String lineId);
	
	List<PurchaseSixCostsOrdersLinesModel> selectByLineId(String lineId);
	
	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int delete(@Param("lineId")String lineId);



	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int update(PurchaseSixCostsOrdersLinesModel sixCostsOrdersLinesModel);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	PurchaseSixCostsOrdersLinesModel load(@Param("lineId")String lineId);


	// 列表
	List<PurchaseSixCostsOrdersLinesModel> selectList(Map<String, Object> map);

	// 列表总数
	int selectListCount(Map<String, Object> map);

	/**
	 * 根据PurId删除行项目
	 * @param purId
	 * @return
	 */
	int deleteByPurId(@Param("purId")String purId);
 }